﻿@model MvcDemoApp.Models.Person
@{
    ViewBag.Title = "Demo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Localization via T4 Template Demo</h2>

@Html.ActionLink("Englisch", "SetLanguage", "Demo", new { language = "en-us" }, null)
@Html.ActionLink("Deutsch", "SetLanguage", "Demo", new { language = "de-de" }, null)

@using(Html.BeginForm("Save", "Demo"))
{
    @Html.ValidationSummary(true);
<fieldset>
    <legend>Person</legend>
    @Html.LabelFor(m => Model.FirstName)
    @Html.EditorFor(m => Model.FirstName)
    @Html.ValidationMessageFor(m => Model.FirstName)
    <br />
    @Html.LabelFor(m => Model.LastName)
    @Html.EditorFor(m => Model.LastName)
    @Html.ValidationMessageFor(m => Model.LastName)
    <br />
    @Html.LabelFor(m => Model.Phone)
    @Html.EditorFor(m => Model.Phone)
    @Html.ValidationMessageFor(m => Model.Phone)
    <br />
    @Html.LabelFor(m => Model.Address)
    @Html.EditorFor(m => Model.Address)
    @Html.ValidationMessageFor(m => Model.Address)
    <br />
    <input type="submit" name="btnSubmit" id="SubmitButton" value="Submit" />
</fieldset>
}
